/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package module2.exercise2.version2;

/**
 *
 * @author trang
 */
public class TestVehicle {
    public static void main(String[] args) {
        
         Vehicle getvalue = new Vehicle(10000);
         //Vehicle box =new Vehicle(800);
          System.out.println("creating a vehicle with a " + getvalue.getMaxLoad() + " kg maximum load");
          //System.out.println("box1 " + addBox(900) +);
          System.out.println("Add box #1 (500kg) : " + getvalue.addBox(500));
          System.out.println("Add box #2 (250kg) : " + getvalue.addBox(250));
          System.out.println("Add box #3 (5000kg) : " + getvalue.addBox(5000));
          System.out.println("Add box #4 (4000kg) : " + getvalue.addBox(4000));
          System.out.println("Add box #5 (300kg) : " + getvalue.addBox(300));
          
          System.out.println("Vehicle load is : " + getvalue.getLoad() + " kg");
}

    }
